#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

#define OFFSETOF(type, mem)     (size_t)&(((type*)0)->mem)

struct S
{
	char c;
	int i;
	char h;
};



int main()
{
	printf("%zd\n", OFFSETOF(struct S, c));
	printf("%zd\n", OFFSETOF(struct S, i));
	printf("%zd\n", OFFSETOF(struct S, h));

	return 0;
}